check whether 2 strings are anagram of each other